/**
 * @Project PONTienLenMienNam
 * @Author Tran Manh Hung
 * @Email: hungtmit@gmail.com | tmh@xwebgate.com
 * @Copyright © 2011 TMH. All rights reserved
 * @Createdate Apr 29, 2011
 * @Createtime 11:17:26 AM
 */

package events
{
	import flash.events.Event;

	public class HGViewEvent extends Event
	{
		/**
		 * oldViewName<br/>
		 * newViewName<br/>
		 */
		public static const VIEW_CHANGE:String = "viewChange";

		private var _newViewName:String;

		public function HGViewEvent(type:String, newViewName:String, bubbles:Boolean = false, cancelable:Boolean = false)
		{
			super(type, bubbles, cancelable);

			this.newViewName = newViewName;
		}

		override public function clone():Event
		{
			return new HGViewEvent(type, newViewName, bubbles, cancelable);
		}

		public function get newViewName():String
		{
			return _newViewName;
		}

		public function set newViewName(value:String):void
		{
			_newViewName = value;
		}

	}
}